//
//  XBShareQQTIMView.h
//  XBShareAPI
//
//  Created by admin on 2018/5/18.
//  Copyright © 2018年 肖世恒. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XBShareAPI.h"


@protocol XBShareQQTIMViewDelegate <NSObject>

@optional

/**
 选中类型
 
 @param type QQ and  TIM
 */
- (void)selectType:(NSInteger)type;

@end

@interface XBShareQQTIMViewModel : NSObject


@property (nonatomic , assign) NSInteger type ; // 1  加QQ群  2 临时会话 3  分享  自动填入

@property (nonatomic, copy) XBSocialRequestCompletionHandler completion;

@property (nonatomic ,strong) XBSocialMessageObject *messageObject;

@property (nonatomic ,strong) NSString *groupNum;

@property (nonatomic ,strong) NSString *groupKey;

@property (nonatomic ,strong) NSString *qqNum;

@property (nonatomic ,assign) BOOL isQZ;//是否是QQ 空间



+ (XBShareQQTIMViewModel *)setModelQQNum:(NSString *)qqNum
                              completion:(XBSocialRequestCompletionHandler)completion;

+ (XBShareQQTIMViewModel *)setModelGroupNum:(NSString *)groupNum
                                   groupKey:(NSString *)groupKey
                                 completion:(XBSocialRequestCompletionHandler)completion;

+ (XBShareQQTIMViewModel *)setModelIsQZ:(BOOL)isqz
                           messageObject:(XBSocialMessageObject *)messageObject
                              completion:(XBSocialRequestCompletionHandler)completion;

@end


@interface XBShareQQTIMView : UIView


+ (XBShareQQTIMView *)defaultManager;


- (void)showXBShareQQTIMView:(id<XBShareQQTIMViewDelegate>)delegate;

@end
